import ajax from "@/utils/request";
import '@/mock/homemock'

export function getSwipeFn() {
    return ajax({
        url: '/api/getSwipeData',
        method: 'post',
    })
}

export function getPictureFn() {
    return ajax({
        url: '/api/getPicture',
        method: 'post',
    })
}

export function getTourismFn() {
    return ajax({
        url: '/api/getTourism',
        method: 'post',
    })
}


export function searchFn(data: { proname: string }) {
    return ajax({
        url: '/api/searchTourism',
        method: 'post',
        data
    })
}


export function historyFn() {
    return ajax({
        url: '/api/getHistory',
        method: 'post',
    })
}


export function addHistoryFn(data: { proname: string }) {
    return ajax({
        url: '/api/addHistory',
        method: 'post',
        data
    })
}